/*
 * @Description: Vuex状态管理
 * @Author: zhihong deng
 * @Date: 2021-08-22 19:37:13
 * @LastEditors: zhihong deng
 * @LastEditTime: 2021-10-11 22:54:18
 */
import { createStore } from "vuex"
import mutations from './mutations'
import storage from "../utils/storage"

const state = {
  userInfo: storage.getItem("userInfo") || {}, //获取登录用户的信息
  menuList: storage.getItem("menuList"), // 获取菜单列表
  actionList: storage.getItem("actionList"),// 获取用户权限列表
  noticeCount: 0
}
export default createStore({
  state,
  mutations
})